import request from '@/utils/request'

// 查询会员积分变动列表
export function listScorelog(query) {
  return request({
    url: '/userInfo/scorelog/list',
    method: 'get',
    params: query
  })
}

// 查询会员积分变动详细
export function getScorelog(id) {
  return request({
    url: '/userInfo/scorelog/' + id,
    method: 'get'
  })
}

// 新增会员积分变动
export function addScorelog(data) {
  return request({
    url: '/userInfo/scorelog',
    method: 'post',
    data: data
  })
}

// 修改会员积分变动
export function updateScorelog(data) {
  return request({
    url: '/userInfo/scorelog',
    method: 'put',
    data: data
  })
}

// 删除会员积分变动
export function delScorelog(id) {
  return request({
    url: '/userInfo/scorelog/' + id,
    method: 'delete'
  })
}
